<?php
header("Cache-Control: no-cache, must-revalidates");
session_start();
include_once("../../../conf/CoreConfiguration.inc.php");
include_once("../../../conf/CoreSetting.inc.php");
include_once("../../../conf/DBConnection.inc.php");
include_once("../../../" . DBMS_LIB_PATH . "class.db.MySqlDBMS.php");
include_once("../../../" . CORE_LIB_PATH . "class.core.Application.php");
include_once("../../../" . CORE_LIB_PATH . "class.core.MySqlQueryParse.php");
include_once("../../../" . CORE_LIB_PATH . "class.core.MySqlQueryExecute.php");
include_once("../../../" . CORE_LIB_PATH . "class.core.InputValidation.php");
include_once("../../../" . CORE_LIB_PATH . "class.core.ErrorMessage.php");
include_once("../../../" . CORE_LIB_PATH . "setting.core.PatternValidation.inc.php");
include_once("../../../" . TEMPLATE_LIB_PATH . "class.template.Detail.php");
include_once("../../../" . TEMPLATE_LIB_PATH . "class.template.Form.php");
include_once("../../../" . TEMPLATE_LIB_PATH . "class.template.List.php");
include_once("../../../" . TEMPLATE_LIB_PATH . "setting.template.inc.php");
include_once("../../../" . SUPPORT_LIB_PATH . "class.support.FormInputRecovery.php");
include_once("../../../" . APP_LOADER_PATH . "core/lib/class.Person.php");

$mForm = new FormTemplate();
$mQuery = new DBQueryParse();
$mValidation = new InputValidation();


//SETUP FORM
$mForm->SetAction("edt");
$mForm->SetCurrentId($_SESSION['User']['Id']);

$mForm->SetFormName("formAkunSetting");
$mForm->SetFormMethod("post");
$mForm->SetFormBackId($_POST["fBackId"]);
$mForm->SetFormTargetAction("main.php?menu=99&submenu=317");
$mForm->SetIsSubmitButton(false);


$mForm->SetFormTitle("FORM PENGATURAN PASSWORD");
/* $mForm->CreateInputForm("text");
  $mForm->SetTitle("FORM MAHASISWA"); */


$mForm->CreateInputForm();
$mForm->SetType('password');
$mForm->SetName('fCurrentPassword');
$mForm->SetCaption('Password Lama');
$mForm->SetIsRequired(true);

$mForm->CreateInputForm();
$mForm->SetType('password');
$mForm->SetName('fNewPassword');
$mForm->SetCaption('Password Baru');
$mForm->SetIsRequired(true);


$mForm->CreateInputForm();
$mForm->SetType('password');
$mForm->SetName('fConfirmPassword');
$mForm->SetCaption('Ketik Ulang Password Baru');
$mForm->SetIsRequired(true);

echo '<div id="ErrorHandler-Container"></div>';
$mForm->PrintForm();
?>
<div id="KetentuanPassword">
<b>Ketentuan:</b>
<ul>
    <li>Minimal panjang karakter password adalah 5 karakter.</li>
    <li>Password adalah CASE-SENSITIVE. Periksa Caps-Lock pada saat setting password baru.</li>
    <li>Sebaiknya gunakanlah kombinasi huruf, angka dan simbol.<br />(simbol yang diperbolehkan: .,@-_!+=)</li>
</ul>
</div>
